from typing import Optional
from pydantic import BaseModel


class AlarmConfig(BaseModel):
    server_alarm: bool = False
    modem_alarm: bool = False
    sensor_1_enabled: bool = False
    sensor_1_normal_state: bool = False
    sensor_2_enabled: bool = False
    sensor_2_normal_state: bool = False


class DeleteAlarms(BaseModel):
    ids: Optional[list] = []
    alarm_type: Optional[str] = 'current'
